<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
   "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:p="http://primefaces.prime.com.tr/ui"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets">
<h:head>
	<title>Application</title>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<h:outputStylesheet name="css/default.css" />
	<ui:insert name="styles" />
</h:head>
<h:body>
	<h:panelGroup layout="block">
	<p:layout styleClass="layout">

		<p:layoutUnit position="top" height="160">
			<h:panelGroup id="header" layout="block"
				styleClass="ui-widget ui-widget-header">
				<h1><h:outputText value="..."
						styleClass="titulo" /></h1>
			</h:panelGroup>
			<h:panelGroup styleClass="linha" layout="block" />
			<h:panelGroup layout="block" styleClass="grpLogin">
				<ui:include src="/public/login.xhtml" />
			</h:panelGroup>
			<h:panelGroup styleClass="linha" layout="block" />
		</p:layoutUnit>

		<p:layoutUnit position="bottom" height="40">
			<h:panelGroup styleClass="linha" layout="block"/>
			<h:panelGroup >
				<ui:insert name="bottom">
					<h:form>
						<p:commandLink update="mainContent">
							<h:outputText value="Main" />
							<f:setPropertyActionListener target="#{home.mainContent}"
								value="/teste" />
						</p:commandLink>
					</h:form>
				</ui:insert>
			</h:panelGroup>
		</p:layoutUnit>
		
		<p:layoutUnit position="left" width="220" scrollable="null" zindex="1">
			<h:panelGroup id="menuContent">
				<ui:include src="/public/menu.xhtml" />
			</h:panelGroup>
		</p:layoutUnit>

		<p:layoutUnit position="center" scrollable="true">

			<h:form id="frmMainContent" prependId="false">
				<h:panelGroup id="mainContent" layout="block">
					<ui:insert name="content">Main Content</ui:insert>
				</h:panelGroup>				
			</h:form>
			
		</p:layoutUnit>


	</p:layout>
	</h:panelGroup>
</h:body>
</html>
